<extend name="Public/Common/base.html" />
<block name="main">
  <style>
.layui-form-label{
	width:110px !important;
	
	
}
</style>
<css  href="__PUBLIC__/layui/css/layui.css"  media="all"/>

  <form class="layui-form" action="{$url}" method="post" > 
    <input type="hidden" name="station_id" value="<notempty name="editstation.station_id">{$editstation.station_id}</notempty>">	 
  <div class="layui-form-item">
    <label class="layui-form-label">工作岗位：</label>
    <div class="layui-input-block">
      <input type="text"  name="station" lay-verify="station" value="<notempty name="editstation.station">{$editstation.station}</notempty>" autocomplete="off" placeholder="请输入工作岗位" class="layui-input">
    </div>
  </div>
  
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">工作描述：</label>
    <div class="layui-input-block">
      <textarea placeholder="工作描述" name="station_info" lay-verify="station_info" class="layui-textarea"><notempty name="editstation.station_info">{$editstation.station_info}</notempty></textarea>
    </div>
  </div>
 
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="am-btn am-btn-primary" lay-submit="submit" >{$info}</button>   
    </div>
  </div>
  
</form>

   
<js  href="__PUBLIC__/layui/layui.js"  media="all"/>
<script>
layui.use(['form'], function(){
  var form = layui.form()
  ,layer = layui.layer  
  form.verify({
	  station: function(value){
        if(value === ""){
        	return "工作岗位不能为空！";
        } 
        if(value.length < 2){
            return '角色名至少得2个字符啊';
          }
       
      },
      station_info: function(value){
          if(value === ""){
          	return "工作岗位描述不能为空！";
          } 
          if(value.length <10){
              return '最少10位,请按要求填写';
            }
         
        },
  });  
});
</script>
  
        
      
</block>